#include<iostream>
#include<list>
#include<deque>
#include<algorithm>

using namespace std;

struct DisPlay{
	void operator(){
		cout<<i<<endl;
	}
};
int main(){
	deque<int> de ={1,2,3,5,7,8,9};
	for each(de.begin(), de.end(),DisPlay());
}
